import { http } from '@/utils/http/axios';

/**
 * @description: 优惠券列表
 */
export function list(params) {
    return http.request({
        url: '/coupons/list',
        method: 'GET',
        params
    });
}

export function edit(params) {
    return http.request({
        url: '/coupons/edit',
        method: 'POST',
        params
    });
}

export function add(params) {
    return http.request({
        url: '/coupons/add',
        method: 'POST',
        params
    });
}

export function info(params) {
    return http.request({
        url: '/coupons/info',
        method: 'GET',
        params
    });
}

export function del(params) {
    return http.request({
        url: '/coupons/del',
        method: 'GET',
        params
    });
}